import request from '@/utils/axios';
import constant from "@/utils/constant";
import appName from "@/api/appName";
const timeout = 900000;
// 新单核保
export function getNewUnderwritList(params) {
    return request({
      url: '/customerinfo/baseinfo/list',
      method: 'post',
      data: params,
      timeout:timeout
    })
}

// 建档资料查询
export function getfileInfo(params) {
  return request({
    url: constant.insureApi + '/proposal/insureModify/queryReadFiles',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 建档资料查询-增加
export function addCheck(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/addCheck',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 建档资料查询校验
export function checkReadFiles(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkReadFiles',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 建档资料修改、保存
export function saveFiles(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/saveFiles',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 根据客户号查询银行账号
export function queryClntBankList(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/queryClntBankList',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 检测 授权资料维护
export function checkEuagpkyFacthous(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkEuagpkyFacthous',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 检测 授权资料维护
export function queryCityCodeList(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/queryCityCodeList',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 查询银行
export function queryBankList(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/queryBankList',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 投保书签署地,营销员确认签署地
export function getAddressBySorgpf(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/getAddressBySorgpf',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 核保操作
export function ueAsiSort(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/ueAsiSort',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 险种列表
export function getCus3pfList(params) {
  return request({
    url: appName.PRODUCT + '/cus3pf/getCus3pfs',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 意外险险种校验
export function checkPolplnSud(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkPolplnSud',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 寿险险种校验
export function checkPolplnLife(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkPolplnLife',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 投资商品险种校验
export function checkPolplnInvest(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkPolplnInvest',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 首期缴费方式校验
export function checkFlag10(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkFlag10',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 销售渠道
export function checkSrcebus(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkSrcebus',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
//Group
export function checkAsCampaign1(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkAsCampaign1',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// CAMPAIGN
export function checkAsCampaign2(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkAsCampaign2',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 受理日期
export function checkAsHprrcvdt(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkAsHprrcvdt',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 投保日
export function checkAsAppldate(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkAsAppldate',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 告知事项-告知对象属性 'clntnum'
export function checkEuafClntnum(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkEuafClntnum',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 告知事项-代码
export function checkEuafpkyInformno(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkEuafpkyInformno',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 计算投保年龄
export async function fCalAssAge(params) {
  var result = await request({
                url: constant.insureApi + '/proposal/checkData/fCalAssAge',
                method: 'post',
                data: params,
                timeout:timeout
              })
  return result;
}
// 检测 asEibgrpnum
export function checkAsEibgrpnum(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkAsEibgrpnum',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 营销员1校验
export function checkEuaapkyZrsecno01(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkEuaapkyZrsecno01',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 营销员2校验
export function checkEuaapkyZrsecno02(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkEuaapkyZrsecno02',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 回溯日/计费日
export function checkEuaapkyCaldate(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/checkEuaapkyCaldate',
    method: 'post',
    data: params,
    timeout:timeout
  })
}
// 政要人物的检查
export async function callPrcCHKPLTC(params) {
  var result = await request({
                url: constant.insureApi + '/proposal/checkData/callPrcCHKPLTC',
                method: 'post',
                data: params,
                timeout:timeout
              })
  return result;
}
//查询 此客户信息是否黑名单
export async function checkDoubtList(params) {
  var result = await request({
                url: constant.insureApi + '/proposal/checkData/checkDoubtList',
                method: 'post',
                data: params,
                timeout:timeout
              })
  return result;
}
//缴别
export function checkEuaapkyBillfreq(params) {
    return request({
       url: constant.insureApi + '/proposal/checkData/checkEuaapkyBillfreq',
       method: 'post',
       data: params,
       timeout:timeout
     }) 
}
//额外投资-选择列表
export function queryFundcrtable(params) {
  return request({
     url: constant.insureApi + '/proposal/lifeInsure/queryFundcrtable',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//根据发票号,公司号找金额
export function checkInvoiceno(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkInvoiceno',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//寿险检测 投保 内容 证件号 Id 号码
export function lifeCheckId(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/lifeCheckId',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//意外险检测 投保 内容 证件号 Id 号码
export function suddenCheckId(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/suddenCheckId',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//投资型险检测 投保 内容 证件号 Id 号码
export function investCheckId(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/investCheckId',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//检测 投保人 occpcden 职业代码1
export function checkOccpcden(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkOccpcden',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//检测 投保人 woccup 职业代码2
export function checkWoccup(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkWoccup',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}

//三位码转险种码
export function convertToPolpln(params) {
  return request({
    url: appName.PRODUCT + '/product/api/convertToPolpln',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

//检测 被保人 occpcden 职业代码1
export function checkOccpcden2(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkOccpcden2',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//检测 被保人 woccup 职业代码2
export function checkWoccup2(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkWoccup2',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//检测 每期基本保费
export function checkZbinstprem(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkZbinstprem',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//检测 sumins 保额.
export function checkSumins(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkSumins',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//保单查询-核保意见分页查询
export function getOpinionPage(params) {
  return request({
    url: appName.POLICY + '/contract/underwrite/getOpinionPage',
    method: 'post',
    data: params
  });
}
//外资银行标志 ,选择列表
export function queryForeignBankList(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/queryForeignBankList',
    method: 'post',
    data: params,
    timeout:timeout
  });
}
//特殊客户标识 ,选择列表
export function queryPvbList(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/queryPvbList',
    method: 'post',
    data: params,
    timeout:timeout
  });
}
//录入意见，列表
export function getInputideatype(params) {
  return request({
    url: constant.insureApi + '/proposal/lifeInsure/getInputideatype',
    method: 'post',
    data: params,
    timeout:timeout
  });
}
//检测 送金单号
export function checkWnotnum(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/checkWnotnum',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
//检测 送金单号 返回
export function reWnotnumAfter(params) {
  return request({
     url: constant.insureApi + '/proposal/checkData/reWnotnumAfter',
     method: 'post',
     data: params,
     timeout:timeout
   }) 
}
// 点击投保计划
export function selectPolplnTab(params) {
  return request({
    url: constant.insureApi + '/proposal/checkData/selectPolplnTab',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 切换用户
export function switchInsuredInfo(params) {
    return request({
        url: constant.insureApi + '/proposal/insureModify/switchInsuredInfo',
        method: 'post',
        data: params,
        timeout:timeout
    })
}

// 查询个养银行列表
export function queryGyBankList(params) {
    return request({
        url: constant.insureApi + '/proposal/lifeInsure/queryGyBankList',
        method: 'post',
        data: params,
        timeout:timeout
    })
}

// 判断是否为个养保单
export function checkPensionPolicy(applnum) {
    return request({
        url: constant.insureApi + '/proposal/lifeInsure/checkPensionPolicy?applnum=' + applnum ,
        method: 'post',
        timeout:timeout
    })
}